package com.xoms.admin.service;

import com.xoms.admin.controller.res.bean.RProAllotBean;
import com.xoms.admin.controller.res.bean.RProAllotDetailBean;
import com.xoms.admin.model.AccountBean;
import com.xoms.admin.service.res.PageResult;

/**
 * 调拨 接口
 * @author admin
 *
 */
public interface ProAllotService {

	/**
	 * 获取调拨列表
	 * @param account
	 * @param key
	 * @param page
	 * @param pageSize
	 * @param startTime
	 * @param endTime
	 * @param storeHouseId
	 * @param toId 
	 * @return
	 */
	PageResult<RProAllotBean> getAllots(AccountBean account, String key, int page, int pageSize, String startTime,
			String endTime, String fromId, String toId);

	/**
	 * 获取调拨详情列表
	 * @param account
	 * @param key
	 * @param page
	 * @param pageSize
	 * @param allotId
	 * @param paging 
	 * @return
	 */
	PageResult<RProAllotDetailBean> getAllotDetail(AccountBean account, String key, int page, int pageSize,
			String allotId, int paging);

	/**
	 * 新建/修改调拨单
	 * @param account
	 * @param aid
	 * @param fromId
	 * @param toId
	 * @param batch
	 * @param type
	 * @param targetId 
	 * @return
	 */
	RProAllotBean edit(AccountBean account, String aid, String fromId, String toId, String batch, int type,String details, String targetId);

	/**
	 * 删除调拨单信息
	 * @param account
	 * @param aid
	 * @return
	 */
	boolean del(AccountBean account, String aid);

}
